package com.whw.fy.mapper;
import java.util.Date;

import com.whw.fy.entity.TeachingDiscussion;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TeachingDiscussionMapper {
    int deleteByPrimaryKey(Integer teachingDiscussionId);

    int insertSelective(TeachingDiscussion record);

    TeachingDiscussion selectByPrimaryKey(Integer teachingDiscussionId);

    int updateByPrimaryKeySelective(TeachingDiscussion record);

    int updateTeachingDiscussionStatusByTeachingDiscussionId(@Param("updatedTeachingDiscussionStatus") Integer updatedTeachingDiscussionStatus, @Param("teachingDiscussionId") Integer teachingDiscussionId);

    List<TeachingDiscussion> selectAll();

    int countByTeachingDiscussionPostUserIdNowInMonth(@Param("teachingDiscussionPostUserId")Integer teachingDiscussionPostUserId);

    List<TeachingDiscussion> selectAllByTeachingDiscussionTeacherId(@Param("teachingDiscussionTeacherId")Integer teachingDiscussionTeacherId);

    List<TeachingDiscussion> selectByTeachingDiscussionTeachingSupervisorId(@Param("teachingDiscussionTeachingSupervisorId")Integer teachingDiscussionTeachingSupervisorId);

    List<TeachingDiscussion> selectByTeachingDiscussionPrincipalTeacherId(@Param("teachingDiscussionPrincipalTeacherId")Integer teachingDiscussionPrincipalTeacherId);

    List<TeachingDiscussion> selectByTeachingDiscussionParticipantsMohu(@Param("teachingDiscussionParticipants")String teachingDiscussionParticipants);


}